export const ColumnProps = [
    {
        title: '角色名称',
        dataIndex: 'name',
        width: 200,
        ellipsis: true
    },
    {
        title: '数据范围',
        dataIndex: 'dataRange',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建人',
        dataIndex: 'creator',
        width: 200,
        ellipsis: true
    },
    {
        title: '创建时间',
        dataIndex: 'createTime',
        width: 300,
        ellipsis: true
    },
    {
        title: '修改人',
        dataIndex: 'updater',
        width: 200,
        ellipsis: true
    },
    {
        title: '修改时间',
        dataIndex: 'updateTime',
        width: 300,
        ellipsis: true
    },
]


export const RuleProps = {
    name: [{ required: true, message: '请填写角色名称' }],
    dataRange: [{ required: true, message: '请选择数据范围' }],
    menuIds: [{ required: true, message: '请选择菜单' }],
}


export const FormProps = {
    id: '',
    name: '',
    dataRange: '',
    menuIds: []
}


export const FilterItems = [
    {
        type: 'input',
        label: '角色名称',
        key: 'name',
        placeholder: '请输入角色名称',
    }
]


export const FormItems = [
    {
        type: 'input',
        label: '角色名称',
        isShow: true,
        key: 'name',
        placeholder: '请输入角色名称',
        maxLength: 50
    },
    {
        type: 'select',
        label: '数据范围',
        key: 'dataRange',
        isShow: true,
        data: [ ],
        placeholder: '请选择数据范围',
    },
]


export const FilterModelProps = {
    total: 0,
    current: 1,
    pageSize: 10,
    name: '',
}
